const initialState = {
    all: [], //这个是所有的产品
    foo: "bookshelf"
  };
  
  const all = (state = [], action) => {
    return state;
  };
  
  export default (state = initialState, action) => {
    return {
      all: all(state.all, action),
      foo: state.foo
    };
  };
  